package com.wei.czz.common.dto.blog;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2021-10-14 21:49:00
 * className: SpaceDto 用户博客空间信息返回结果封装类
 * version: 1.0
 * description:
 *  `@JsonInclude(JsonInclude.Include.NON_EMPTY)`：接口返回对象时，如果某个字段值为空，序列化不操作该字段
 */
@Getter
@Setter
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class SpaceDto extends BaseEntity {

    /**
     * 空间id
     */
    private String spaceId;

    /**
     * 空间名称
     */
    private String name;

    /**
     * 排序等级
     */
    private Integer sort;

    /**
     * 创建时间
     */
    private Date createTime;
}
